<?php
	use yii\helpers\Html;
	use yii\widgets\ActiveForm;
	use yii\helpers\Url;
?>
<style type="text/css">
	label{
		font-size: 15px;
	}
</style>
<div style="float:right;width: 350px;margin: 90px 5%;border:1px solid #D2C8C8; border-radius:5px;padding: 13px;" >
<?php $form = ActiveForm::begin(['options'=>["style"=>""] ,"action"=>Url::to([''])]);?>
	<?= $form->field($model,'account')->label('账号')?>
	<?= $form->field($model,'password')->passwordInput()->label('密码')?>
	
	<div style="height: 70px;">
		<?= $form->field($model,'verify_data',['options'=>['style'=>'height: 100px;float: left']])->label('验证码')?>
		<div style="margin-top: 22px;float: left">
				<?=\yii\captcha\Captcha::widget([
				'model'=>$model,
				'attribute'=>'verify_data',
				'captchaAction'=>'nurse/login/captcha',
				'template'=>'{image}',
				'options' => [
					'id' => 'input'
				],
				'imageOptions' =>[
					//'style'=>'display:table-cell;',
					'alt' => '点击换验证码',
				]
			]);
		?>
		</div>

	</div>	



	<div class="form-group">
        <button class="btn btn-primary" style="height:40px;width:100% " onclick="document.getElementByid('form1').submit()"><div style="font-size: 18px;letter-spacing:8px">登陆</div></button>
    </div>
<?php ActiveForm::end();?>
</div>

